package com.yyx.demo.config.statement;

import com.yyx.demo.config.Function;

import java.lang.reflect.InvocationTargetException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public interface StatementHandler {


    <T> T  query(PreparedStatement statement, String parameter, Function function) throws SQLException, InvocationTargetException, IllegalAccessException, InstantiationException;

    PreparedStatement instantiateStatement(Connection connection, String sql) throws SQLException;
}
